<?php
function openTable($path){
    if (file_exists($path)) {
        return fopen($path, 'r');
    } else {
        echo "<h1>File does not exist!</h1>";
        exit();
    }
}